package com.example.haiyang.domain;

import java.util.Date;
import com.baomidou.mybatisplus.activerecord.Model;
import java.io.Serializable;

/**
 * <p>
 * 用户表，所有的用户信息在这里存着
 * </p>
 *
 * @author haiyang
 * @since 2019-11-23
 */
public class User extends Model<User> {

    private static final long serialVersionUID = 1L;

    /**
     * 用户id
     */
    private String id;
    /**
     * 用户姓名，登录名
     */
    private String name;
    /**
     * 性别，0 是女1 是男
     */
    private Integer gender;
    /**
     * 真实姓名
     */
    private String truename;
    /**
     * 手机号
     */
    private String telephone;
    /**
     * 微信登录id,一个用户只能绑定一个用户
     */
    private String weixinid;
    /**
     * 最后登陆时间
     */
    private Date lastTime;
    /**
     * 失败次数超过三次账户锁定，联系管理员或者手机验证找回密码
     */
    private Integer falselogin;
    /**
     * 年龄
     */
    private Integer age;
    /**
     * 出生年月
     */
    private Date birthtime;

    /**
     * 邮箱
     */
    private String email;

    /**
     * 密码
     */
    private String password;

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getGender() {
        return gender;
    }

    public void setGender(Integer gender) {
        this.gender = gender;
    }

    public String getTruename() {
        return truename;
    }

    public void setTruename(String truename) {
        this.truename = truename;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public String getWeixinid() {
        return weixinid;
    }

    public void setWeixinid(String weixinid) {
        this.weixinid = weixinid;
    }

    public Date getLastTime() {
        return lastTime;
    }

    public void setLastTime(Date lastTime) {
        this.lastTime = lastTime;
    }

    public Integer getFalselogin() {
        return falselogin;
    }

    public void setFalselogin(Integer falselogin) {
        this.falselogin = falselogin;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Date getBirthtime() {
        return birthtime;
    }

    public void setBirthtime(Date birthtime) {
        this.birthtime = birthtime;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "User{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", gender=" + gender +
                ", truename='" + truename + '\'' +
                ", telephone=" + telephone +
                ", weixinid='" + weixinid + '\'' +
                ", lastTime=" + lastTime +
                ", falselogin=" + falselogin +
                ", age=" + age +
                ", birthtime=" + birthtime +
                ", email='" + email + '\'' +
                ", password='" + password + '\'' +
                '}';
    }
}
